import request from '@/utils/request'

export const registerAPI = (data) => {
  return request({
    url: '/user/register',
    method: 'post',
    data
  })
}

export const loginAPI = (data) => {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

// 获取用户信息
export const getUserInfoAPI = () => {
  return request('/user/currentUser')
}
